/**
 * Created by DuHuiling on 2017/4/20.
 */

var Accumulative = React.createClass({
    getDefaultProps:function(){
        return{
            date:{
                unit:"元",
                transaction:0,
                produce:0
            }
        }
    },
    render:function(){
        return (
            <ul>
                <li>累计交易金额（<span>{this.props.data.unit}</span>）：<b ref="acount1">{this.props.data.transaction}</b></li>
                <li>累计产生收益（<span>{this.props.data.unit}</span>）：<b ref="acount2">{this.props.data.produce}</b></li>
            </ul>
        )
    }
});
module.exports = Accumulative;